package cn.mdmbct.douyin.data.response.user;

import com.alibaba.fastjson.annotation.JSONField;
import cn.mdmbct.douyin.common.response.DyOpenApiResponse;
import cn.mdmbct.douyin.common.response.DefaultResponseData;
import cn.mdmbct.douyin.common.response.ResponseExtra;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 获取用户评论数返回
 *
 * @author mdmbct  mdmbct@outlook.com
 * @date 2021/3/8 17:14
 * @modified mdmbct
 * @since 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DataUserCommentRes implements DyOpenApiResponse {

    private static final long serialVersionUID = 1571824960697055334L;

    private ResponseExtra extra;

    private DataUserCommentResData data;


    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @EqualsAndHashCode(callSuper = true)
    public static class DataUserCommentResData extends DefaultResponseData {

        private static final long serialVersionUID = 6664431762860478722L;

        @JSONField(name = "result_list")
        private List<CommentCount> resultList;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class CommentCount implements Serializable {

        private static final long serialVersionUID = 4526847177140215850L;

        /**
         * 日期
         */
        private String date;

        @JSONField(name = "new_comment")
        private long newComment;

    }



}
